home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / bind-contrib.tar.gz / bind-contrib.tar / contrib / host / conf.h next >
C/C++ Source or Header  |  1996-11-10  |  2KB  |  100 lines

  1. /*
  2. ** Various configuration definitions.
  3. **
  4. **    @(#)conf.h              e07@nikhef.nl (Eric Wassenaar) 961013
  5. */
  6.  
  7. /*
  8.  * A special version of res_send() is included, which returns additional
  9.  * errno statuses, and which corrects some flaws in the BIND 4.8 version.
  10.  */
  11.  
  12. #if !defined(HOST_RES_SEND) && !defined(BIND_RES_SEND)
  13.  
  14. #if defined(BIND_49)
  15. #define BIND_RES_SEND        /* use the default BIND res_send() */
  16. #else
  17. #define HOST_RES_SEND        /* use the special host res_send() */
  18. #endif
  19.  
  20. #endif
  21.  
  22. /*
  23.  * The root domain for the internet reversed mapping zones.
  24.  */
  25.  
  26. #define ARPA_ROOT    "in-addr.arpa"
  27.  
  28. /*
  29.  * The root domain for the IP v6 reversed mapping zones as per RFC 1886.
  30.  */
  31.  
  32. #ifndef IPNG_ROOT
  33. #define IPNG_ROOT    "ip6.int"
  34. #endif
  35.  
  36. /*
  37.  * The root domain for the NSAP reversed mapping zones as per RFC 1637.
  38.  */
  39.  
  40. #ifndef NSAP_ROOT
  41. #define NSAP_ROOT    "nsap.int"
  42. #endif
  43.  
  44. /*
  45.  * An encoded NSAP address is 7 to 20 octets as per RFC 1629.
  46.  */
  47.  
  48. #define MAXNSAP        20    /* maximum size of encoded NSAP address */
  49.  
  50. /*
  51.  * Version number of T_LOC resource record.
  52.  */
  53.  
  54. #define T_LOC_VERSION    0    /* must be zero */
  55.  
  56. /*
  57.  * Various constants related to MD5 keys and signatures.
  58.  */
  59.  
  60. #define    MAXMD5BITS    2552
  61. #define    MAXMD5SIZE    (2*((MAXMD5BITS+7)/8)+3)
  62. #define    MAXB64SIZE    (4*((MAXMD5SIZE+2)/3))
  63.  
  64. /*
  65.  * The standard nameserver port.
  66.  */
  67.  
  68. #ifndef NAMESERVER_PORT
  69. #define NAMESERVER_PORT    53
  70. #endif
  71.  
  72. /*
  73.  * Miscellaneous constants.
  74.  */
  75.  
  76. #define MAXCHAIN    10    /* maximum count of recursive chain lookups */
  77. #define MAXALIAS    35    /* maximum aliases count from gethnamaddr.c */
  78. #define MAXADDRS    35    /* maximum address count from gethnamaddr.c */
  79. #define MAXNSNAME    16    /* maximum count of nameservers per zone */
  80. #define MAXIPADDR    10    /* maximum count of addresses per nameserver */
  81.  
  82. /*
  83.  * Default timeout values.
  84.  */
  85.  
  86. #define DEF_RETRIES    2    /* number of datagram retries per nameserver */
  87. #define DEF_RETRANS    5    /* timeout (seconds) between datagram retries */
  88. #define CONNTIMEOUT    5    /* connect timeout (value _res.retrans used) */
  89. #define READTIMEOUT    60    /* read timeout (seconds) during stream I/O */
  90.  
  91. /*
  92.  * Prefix for messages on stdout in debug mode.
  93.  */
  94.  
  95. #if defined(BIND_49)
  96. #define DBPREFIX    ";; "
  97. #else
  98. #define DBPREFIX    ""
  99. #endif
  100.